<?php include 'admin-css-js.php'; ?>

<div id="wrapper">
    <?php include 'admin-top-menu.php'; ?>
    <div id="mainpage">

        <div id="leftandcenter">

            <div id="maincontentcenter">


                <div id="manage-new-pland" class="left-header"></div>
                <div style="padding: 10px;">
                    <div id="list-content-category" class="hide"></div>
                    <div id="add-new-category" class="hide">
                        <form id="frmAddNewCategory" name="frmAddNewCategory">
                            <div id="list-input-item">
                                <div id="item-0">
                                    <span>Tên danh mục cấp 1</span>
                                    <span><input type="text" name="category_name_level1[]" tooltipText="Nhập tên category. Mỗi category cách nhau bằng dấu chấm phảy ;."></span>
                                    <span><a class="cpointer" onclick="AdminController.addRowItemCategory('list-input-item', 'list-input-item-hidden');">add</a></span>
                                    <span style="padding-left: 20px;"><a class="cpointer" onclick="AdminController.removeRowItemCategory(this, 'list-input-item');">remove</a></span>
                                </div>
                            </div>
                            <div>
                                <input type="button" class="cpointer" onclick="AdminController.saveMainCategory();" value="Thêm">
                            </div>
                        </form>
                        <div id="list-input-item-hidden" style="display: none;">
                            <span>Tên danh mục cấp 1</span>
                            <span><input type="text" name="category_name_level1[]" tooltipText="Nhập tên category. Mỗi category cách nhau bằng dấu chấm phảy ;."></span>
                            <span><a class="cpointer" onclick="AdminController.addRowItemCategory('list-input-item', 'list-input-item-hidden');">add</a></span>
                            <span style="padding-left: 20px;"><a class="cpointer" onclick="AdminController.removeRowItemCategory(this, 'list-input-item');">remove</a></span>
                        </div>
                    </div>
                    <div id="show-add-sub-cat" class="hide"></div>
                    <div id="list-sub-cat" class="hide"></div>
                    <div id="list-product" class="hide"></div>
                    <div id="editor" class="hide">
                        <?php include 'new-post.php' ?>
                    </div>
                </div>
            </div>

            <div id="left"
                 <div id="left-header" class="left-header"></div>
                <div id="list-category"></div>
                <div id="main-image-header" class="hide">
                    <div style="font-weight: bold;padding: 10px;">Hình ảnh của sản phẩm</div>
                    <div id="div-main-image"></div>
                </div>

            </div>

        </div>

    </div>

    <div id="right">

    </div>

    <div class="clear"></div>

    <div id="footer">

        <?php include 'admin-footer.php'; ?>

                    </div>

                </div>

<?php include 'overlayAddSubCategory.php'; ?>
<?php include 'overlayAddCategoryInfo.php'; ?>
<?php include 'overlayAddSubCategoryInfo.php'; ?>
<?php include 'overlayAddSubCategoryInfoLevel3.php'; ?>

<script type="text/javascript">
    var tooltipObj = new DHTMLgoodies_formTooltip();
    tooltipObj.setTooltipPosition('right');
    tooltipObj.setPageBgColor('#EEEEEE');
    tooltipObj.setTooltipCornerSize(10);
    tooltipObj.initFormFieldTooltip();
</script>